package com.gitee.hermer.engine.jars.dependent.zipkin.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.dependent.dsm.domain.EngineProperties;

@PropertySource(EngineConstant.ENGINE_CONFIG_PROPERTIES_CLASS_PATH)
@Component
public class ZipkinProperties extends EngineProperties{
	
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_DSM_APP_NAME)
	private String appName;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_DSM_APP_VERSION)
	private String appVersion;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_ZIPKIN_ADDRESS)
	private String serverResAddres;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_ZIPKIN_SENDER_CLOSE_TIMEOUT)
	private Integer clientTimeout;
	
	
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getAppVersion() {
		return appVersion;
	}
	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}
	public String getServerResAddres() {
		return serverResAddres;
	}
	public void setServerResAddres(String serverResAddres) {
		this.serverResAddres = serverResAddres;
	}
	public Integer getClientTimeout() {
		return clientTimeout;
	}
	public void setClientTimeout(Integer clientTimeout) {
		this.clientTimeout = clientTimeout;
	}
	
	
	
	

}
